package com.ly.honor.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.honor.entity.News;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.honor.entity.dto.NewsQueryDTO;
import com.ly.honor.entity.vo.NewsQueryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 17798
* @description 针对表【bs_news】的数据库操作Mapper
* @createDate 2022-11-16 11:49:49
* @Entity com.ly.honor.entity.News
*/
@Mapper
public interface NewsMapper extends BaseMapper<News> {

    Page<NewsQueryVO> getNewsPageList(@Param("newsDTO") NewsQueryDTO newsDTO, Page<NewsQueryVO> newsPage);

    List<NewsQueryVO> recentlyHighHeatNews();

    Page<NewsQueryVO> getNewsPageListDesc(Page<NewsQueryVO> newsPage);
}




